package com.xiangshizhineng.tianzhangzhi.app.model.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xiangshizhineng.tianzhangzhi.app.common.base.BaseEntity;
import com.xiangshizhineng.tianzhangzhi.app.utils.LongJsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "事件附件表")
public class EventFile extends BaseEntity implements Serializable {

  /**
   * 附件名称
   */
  @ApiModelProperty(value = "附件名称")
  private String fileName;
  /**
   * 附件路径
   */
  @ApiModelProperty(value = "附件路径")
  private String filePath;
  /**
   * 事件id
   */
  @ApiModelProperty(value = "事件id")
  @JsonSerialize(using = LongJsonSerializer.class)
  private Long eventId;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date createTime;
  /**
   * 
   */
  @ApiModelProperty(value = "")
  private Date updateTime;
  /**
   * 事件图片类型（0上报事件上传图片，1解决事件上传图片）
   */
  @ApiModelProperty(value = "事件图片类型（0上报事件上传图片，1解决事件上传图片）")
  private String picType;

}
